package ch2.ex10;

import static ch2.ex1.Print.*;
public class BinaryTest {

	public static void main(String[] args){
		int i = 4;
		int j = 5;
		println("i = " + Integer.toBinaryString(i));
		println("j = " + Integer.toBinaryString(j));
		println("i & j = " + Integer.toBinaryString(i & j));
		println("i | j = " + Integer.toBinaryString(i | j));
		println("i ^ j = " + Integer.toBinaryString(i ^ j));
		println("~i = " + Integer.toBinaryString(~i));
		println("~j = " + Integer.toBinaryString(~j));
		
		
	}
}
